<?php
include("include/config.inc.php");
if(!isset($_SESSION['s_activId']))
{
  header("location:checklogin.php");
}

echo $deletedriver = "DELETE FROM driver 
                   WHERE  driverId = ".$_GET['driverId'];
$deletedriverRes = mysql_query($deletedriver);
if(!$deletedriverRes)
{
	echo("DELETE FAIL");
}
else
{
	header("Location:driverList.php");
}
?>